#include <iostream>

using namespace std;
class Draw {
private:
    int high;

public:
    Draw(int high):high(high){
    if (high<=3){
            cout<<"High must be greater than 3"<<endl;
        }
    }
    void drawTriangle(){
        for (int i=1;i<=high;i++){
            for(int j=1;j<=i;j++){
                cout<<"*";
            }
            cout<<endl;
        }
        cout<<endl;
    }
    void drawRectangle(int weight){
        for(int i=1;i<=high;i++){
            for(int j=1;j<=weight;j++) {
                cout<<"*";
            }
            cout<<endl;
        }
        cout<<endl;
    }
    void drawSquare(){
        for (int i=1;i<=high;i++){
            for(int j=1;j<=high;j++){
                cout<<"*";
            }
            cout<<endl;
        }
        cout<<endl;
    }
   void drawParallelogram(int width){
        for(int i=1;i<=high;i++){
            for(int j=1;j<i;j++){
                cout<<" ";
            }
            for(int j=1;j<=width;j++){
                cout<<"*";
            }
            cout<<endl;
        }
        cout<<endl;
    }
};
int main()
{   Draw draw(5);
    draw.drawTriangle();
    draw.drawRectangle(3);
    draw.drawSquare();
    draw.drawParallelogram(3);
    return 0;
}
